export default {
	getPageList() {
		let that = this
		if (that.loading) {
			return false
		}
		that.loading = true
		that.$httpRequest.get({
			that: that,
			url: 'h5/getMessagePage',
			params: {
				pageNo: that.page,
				pageSize: that.list_rows,
			},
			success: res => {
				that.loading = false
				if (res.code === that.$httpConfig.SUCCESS_CODE) {
					if (that.page === 1) {
						that.list = res.data.rows
					} else {
						that.list = that.list.concat(res.data.rows)
					}
					that.page++
				} else {
					
				}
			}
		})
	},
	delChat(e){
		console.log("删除",e)
	},
	toDetail(id,type) {
		let that = this
		if (that.atLoading) {
			//禁止多次点击
			return false
		}
		that.atLoading = true
		uni.navigateTo({
			url: '/pages/my/noticeDetail?id=' + id
		})
		setTimeout(()=>{ //延时指定时间后，再解冻
			that.atLoading = false;
		}, 1000);

		
	}
}